using System;
using System.Collections.Generic;
using System.Xml;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace ClientTools.Client.Controls.Packager.PackageClasses
{
    [Serializable]
    public class Data
    {
        private Guid _versionId;
        [XmlAttribute("versionId")]
        public Guid VersionId
        {
            get { return _versionId; }
            set { _versionId = value; }
        }

        private string _alias;
        [XmlAttribute("alias")]
        public string Alias
        {
            get { return _alias; }
            set { _alias = value; }
        }

        private string _content;
        [XmlIgnore]
        public string Content
        {
            get { return _content; }
            set { _content = value; }
        }

        //[XmlText]
        //public XmlCDataSection ContentCdata
        //{
        //    get
        //    {
        //        XmlDataDocument doc = new XmlDataDocument();
        //        XmlCDataSection cd = doc.CreateCDataSection(_content);
        //        return cd;
        //    }
        //    set { _content = value.Value; }
        //}


        //#region ISerializable Member

        //public void GetObjectData(SerializationInfo info, StreamingContext context)
        //{
        //    info.AddValue(
        //    throw new Exception("The method or operation is not implemented.");
        //}

        //#endregion
    }
}
